export default {
	userInfo: state => state.app.userInfo || {},
	token: state => state.app.token,
	isLogin: state => !!state.app.token,
	cartNum: state => state.app.cartNum,
	inviteCode: state => state.app.userInfo.distribution_code || "",
	appConfig: state => state.app.config,
	agentInfo: state => {
		let info = state.app.agentInfo;
		if (info && info.logo) {
			info.image = info.logo
		}
		return info;
	},
};